package com.indusfo.spc.pojo;

import java.util.List;

/**
 * @ClassName Tree
 * @Description 生产资源用于展示的树的pojo
 * @Author louk
 * @Date 2020/1/8 14:14
 * @Version 1.0
 */
public class Tree {
    private Integer id;
    private Integer pId;
    private String  title;
    private Boolean parent;
    private List<Tree> children;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title== null ? null : title.trim().replace(" ","");
    }

    public Boolean getParent() {
        return parent;
    }

    public void setParent(Boolean parent) {
        this.parent = parent;
    }

    public List<Tree> getChildren() {
        return children;
    }

    public void setChildren(List<Tree> children) {
        this.children = children;
    }
}
